cmake_minimum_required(VERSION 3.27)

set(PROJ_NAME "game")

project(${PROJ_NAME})

include_directories(include Projinclude)
include_directories("F:/Clib/SDL2-2.30.4/include")
link_directories("F:/Clib/SDL2-2.30.4/lib/x64/")


include_directories("${CMAKE_SOURCE_DIR}/include")
include_directories("${CMAKE_SOURCE_DIR}/Projinclude")


link_libraries(SDL2)
link_libraries(SDL2_image)
link_libraries(SDL2_ttf)


set(CMAKE_CXX_STANDARD 17)

add_executable(${PROJ_NAME} main.cpp
        Projsrc/event.cpp
        Projinclude/event.h
        main.h
        include/spirit.h
        src/spirit.cpp
        Projinclude/config.h
        Projsrc/PInit.cpp
        Projinclude/Pinit.h
        Projsrc/config.cpp
        include/map.h
        src/map.cpp
        include/mLink.h
        src/mLink.cpp
        include/cJSON.h
        src/cJSON.c
        include/crash.h
        src/crash.cpp
)
